<?php
session_start();

include('getTableListTypeClass.php');
$dbconf=new DBConfig();
$reqData=new ReqDataType();
//全局参数 给 后续 流程 提供 信息 载体

if(@$_SESSION['userid']){
$conn= new mysqli($dbconf->servername,$dbconf->username,$dbconf->password,$dbconf->dbname);
if ($conn->connect_error) {
	   // die("mysql连接失败: " . $conn->connect_error);
	   $reqData->status='error';
	   $reqData->type='mysql';
}
$procTableList=new ProcTableList();
$procTableList->Init($conn,@$_SESSION['userid']);
$reqData=$procTableList->getTableList();
$conn->close();
}else{
	$reqData->msg='no login';
}

echo json_encode($reqData);
?>